import { request } from 'umi';

/**
 * 获取obs参数
 * @param server
 */
export const getObsConfig = (server: string) => {
  return request<any>(`${server}/api/systemSet/getObsConfig`, {
    method: 'get',
  });
};

/**
 * 获取m7s参数
 * @param server
 */
export const getM7sConfig = (server: string) => {
  return request<any>(`${server}/api/systemSet/getM7sConfig`, {
    method: 'get',
  });
};

/**
 * 获取观看直播
 * @param server
 * @param data
 */
export const myLive = (server: string, data: any) => {
  return request<any>(`${server}/api/myLiveManage/myLive`, {
    method: 'post',
    getResponse: true,
    data,
  });
};
